/**
 * 封装4个请求方法
 * */
import {request} from "@/request/request";

const post = (url, data) => {
 return request({
  method: 'post',
  url,
  data
 })
}

const get = (url, data) => {
 return request({
  method: 'get',
  url,
  params: data
 })
}

const put = (url, data) => {
 return request({
  method: 'put',
  url,
  data
 })
}

const del = (url, data) => {
 return request({
  method: 'delete',
  url
 })
}

export default {
 post,
 get,
 put,
 del
}